package org.dev.hi.hiui.tab.top;

import android.graphics.Bitmap;

import androidx.fragment.app.Fragment;

public
/**
 * Author WenPing 
 * CreateTime 2021/3/29.
 * Description:
 */

class HiTabTopInfo<Color> {

    public enum TabType {
        BITMAP,TXT
    }

    private Class<? extends Fragment> fragment;

    private String name;

    private Bitmap defaultBitmap;

    private Bitmap selectedBitmap;

    private Color defaultColor;

    private Color tintColor;

    private TabType tabType;


    public HiTabTopInfo(String name, Bitmap defaultBitmap, Bitmap selectedBitmap) {
        this.name = name;
        this.defaultBitmap = defaultBitmap;
        this.selectedBitmap = selectedBitmap;

        this.tabType = TabType.BITMAP;
    }

    public HiTabTopInfo(String name, Color defaultColor, Color tintColor) {
        this.name = name;
        this.defaultColor = defaultColor;
        this.tintColor = tintColor;

        this.tabType = TabType.TXT;
    }


    public TabType getTabType() {
        return tabType;
    }

    public void setTabType(TabType tabType) {
        this.tabType = tabType;
    }

    public Color getTintColor() {
        return tintColor;
    }

    public void setTintColor(Color tintColor) {
        this.tintColor = tintColor;
    }

    public Bitmap getDefaultBitmap() {
        return defaultBitmap;
    }

    public void setDefaultBitmap(Bitmap defaultBitmap) {
        this.defaultBitmap = defaultBitmap;
    }

    public Bitmap getSelectedBitmap() {
        return selectedBitmap;
    }

    public void setSelectedBitmap(Bitmap selectedBitmap) {
        this.selectedBitmap = selectedBitmap;
    }

    public Color getDefaultColor() {
        return defaultColor;
    }

    public void setDefaultColor(Color defaultColor) {
        this.defaultColor = defaultColor;
    }

    public Class<? extends Fragment> getFragment() {
        return fragment;
    }

    public void setFragment(Class<? extends Fragment> fragment) {
        this.fragment = fragment;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
